/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/*
 * @Author: your name
 * @Date: 2020-08-06 17:06:30
 * @LastEditTime: 2020-08-07 13:33:53
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \kuaidihelp\kuaidihelp_shop_admin\src\pages\Post\Express.js
 */
import React, { PureComponent } from "react";
import StandardTab from "@/components/StandardTab";
import { PostSubmit, Address } from "@/components/PostExpress";
import PageHeaderLayout from "@/layouts/PageHeaderLayout";
import styles from "./style.less";

export default class Account extends PureComponent {
  state = {
    currentPage: 1,
  };

  handleTabChange = activeKey => {
    this.setState({
      activeKey,
    });
  };

  render() {
    const { activeKey } = this.state;
    return (
      <PageHeaderLayout title="快递费">
        <div className={`${styles.main} ${styles.account} standard-tab`}>
          <StandardTab
            name="express"
            activeKey={activeKey}
            onChange={this.handleTabChange}
            panes={[
              {
                tab: "上交记录",
                component: <PostSubmit />,
              },
              {
                tab: "上交的站点",
                component: <Address />,
              },
            ]}
          />
        </div>
      </PageHeaderLayout>
    );
  }
}
